package com.example.springsecurity.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import org.apache.ibatis.type.Alias;

/**
 * @ClassName UserRole
 * @Description TODO 用户角色关联实体
 * @Author lvyongwei
 * @Date 2020-09-16 13:28
 **/
@Data
@Alias("userRole")
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
public class UserRole {

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 角色id
     */
    private Integer roleId;
}
